<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTravelers extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('traveler', function($table)
		{
			$table->increments('id');
			$table->string('type', 128);
			$table->boolean('status', 1)->default('1');
			$table->string('name', 128);
			$table->date('birthDate', 128);
			$table->string('email', 128);
			$table->string('phone', 128);
			$table->string('mobilePhone', 128);
			$table->string('gender', 1);
			$table->string('cpf', 128);
			$table->string('passport', 128);
			$table->string('registration', 128)->nullable();
			$table->string('department', 128)->nullable();
			$table->string('responsibility', 128)->nullable();
			$table->string('regional', 128)->nullable();
			$table->string('costCenter', 128)->nullable();
			$table->string('requestor', 128);
			$table->string('requestingPhone', 128);
			$table->string('requestingEmail', 128);
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('traveler');
	}

}
